package edu.ynu.se.xiecheng.achitectureclass.common.entity;

import edu.ynu.se.xiecheng.achitectureclass.common.entity.abstrac.LogicEntity;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;


@Entity
@Where(
        clause = "is_deleted = 0"
)
public class User extends LogicEntity {
    @Column
    private String userName;
    @Column
    private String password;

    public User() {
    }

    public String getUserName() {
        return this.userName;
    }

    public String getPassword() {
        return this.password;
    }

    public void setUserName(final String userName) {
        this.userName = userName;
    }

    public void setPassword(final String password) {
        this.password = password;
    }
}
